// numType 0 保留两位小数 1 整数 3 无限制

// 对象解析
/*
{
    value: "0", // 数量
    name: "用地面积", // 能耗名称
    unit: "平方米", // 计量单位
    numType: 0, // 数量数据类型
    code: "009",// 代码(唯一识别)
    fields: "landArea",// 对应表单字段
    lastValue:"0", // 上期数据
    loopRatio:"0", // 环比(%)
    lastYearvalue:"0", // 去年同期数据
    togetherRatio:"0", // 同比(%)
    notInput:false,// 不显示输入框
    isChildren:false,// 是否为子项 false： 不是  1：离左20 2：离左40  3： 加其中 离左20 4: 离左 50
}
*/

export const tableData = [
    // {
    //   value: "0",
    //   name: "公共机构数量",
    //   unit: "个",
    //   numType: 0,
    //   code: "008",
    //   fields: "publicOrganizationNum",
    //   lastValue: "0", notInput: true,
    //   loopRatio: "0",
    //   lastYearvalue: "0",
    //   togetherRatio: "0",
    // },
    {
        value: "0",
        name: "机房数量",
        unit: "个",
        numType: 1,
        code: "009",
        fields: "numberOfComputerRooms",
        lastValue: "0", notInput: true,
        loopRatio: "0",
        lastYearvalue: "0",
        togetherRatio: "0",
    },
    {
        value: "0",
        name: "机房建筑面积",
        unit: "平方米",
        numType: 0,
        code: "101",
        fields: "buildingAreaOfTheComputerRooms",
        lastValue: "0", notInput: true,
        loopRatio: "0",
        lastYearvalue: "0",
        togetherRatio: "0",
    },
    {
        value: "0",
        name: "机柜总数量（机柜平均功率:一）	",
        unit: "个",
        numType: 1,
        code: "102",
        fields: "totalNumberOfCabinets",
        lastValue: "0", notInput: true,
        loopRatio: "0",
        lastYearvalue: "0",
        togetherRatio: "0",
    },
    {
        value: "0",
        name: "设备总功率",
        notInput: true,
        unit: "千瓦",
        numType: 0,
        code: "1021",
        fields: "totalPowerOfEquipment",
        lastValue: "0", notInput: true,
        loopRatio: "0",
        lastYearvalue: "0",
        togetherRatio: "0",
    },
    {
        value: "0",
        name: "IT设备功率",
        unit: "千瓦",
        numType: 0,
        code: "1021",
        fields: "itEquipmentPower",
        lastValue: "0", notInput: true,
        loopRatio: "0",
        lastYearvalue: "0",
        togetherRatio: "0",
        isChildren: 3,
    },
    {
        value: "0",
        name: "空气调节设备功率",
        unit: "千瓦",
        numType: 0,
        code: "1021",
        fields: "airConditioningEquipmentPower",
        lastValue: "0", notInput: true,
        loopRatio: "0",
        lastYearvalue: "0",
        togetherRatio: "0",
        isChildren: 5,
    }, {
        value: "0",
        name: "配电及附属设备功率",
        unit: "千瓦",
        numType: 0,
        code: "1021",
        fields: "powerDistributionAndAuxiliaryEquipmentPower",
        lastValue: "0", notInput: true,
        loopRatio: "0",
        lastYearvalue: "0",
        togetherRatio: "0",
        isChildren: 5,
    },
    {
        value: "0",
        name: "UPS装机容量",
        unit: "千伏安",
        numType: 0,
        code: "103",
        fields: "upsInstalledCapacity",
        lastValue: "0", notInput: true,
        loopRatio: "0",
        lastYearvalue: "0",
        togetherRatio: "0",
    },
    {
        value: "0",
        name: "总用电量",
        unit: "千瓦时",
        numType: 0,
        code: "1031",
        notInput: true,
        fields: "totalPower",
        lastValue: "0", notInput: true,
        loopRatio: "0",
        lastYearvalue: "0",
        togetherRatio: "0",
    },
    {
        value: "0",
        name: "IT设备用电量",
        unit: "千瓦时",
        numType: 0,
        code: "1032",
        fields: "powerConsumptionOfItEquipment",
        lastValue: "0", notInput: true,
        loopRatio: "0",
        lastYearvalue: "0",
        togetherRatio: "0",
        isChildren: 3,
    },
    {
        value: "0",
        name: "空气调节设备用电量",
        unit: "千瓦时",
        numType: 0,
        code: "1033",
        fields: "powerConsumptionOfAirConditioningEquipment",
        lastValue: "0", notInput: true,
        loopRatio: "0",
        lastYearvalue: "0",
        togetherRatio: "0",
        isChildren: 5,
    },
    {
        value: "0",
        name: "配电及附属设备用电量",
        unit: "千瓦时",
        numType: 0,
        code: "110",
        fields: "powerConsuptionOfPowerDistributionAndAuxiliaryEquipment",
        lastValue: "0", notInput: true,
        loopRatio: "0",
        lastYearvalue: "0",
        togetherRatio: "0",
        isChildren: 5,
    },
    // {
    //     value: "",
    //     name: "特殊情况说明",
    //     extext: "(对于部分变化幅度较大的数据项，可在此项填写相应说明)",
    //     unit: "",
    //     numType: 3,
    //     code: "999",
    //     fields: "specialSituationDescription",
    //     lastValue: "0", notInput: true,
    //     loopRatio: "0",
    //     lastYearvalue: "0",
    //     togetherRatio: "0",
    // }
];

export const explain =
    "1.单位负责人指本单位主管节能工作的领导；统计负责人指本单位负责节能工作的处（科、室）领导；填表人指本单位具体负责填写能耗统计报表的人员。";

export default {
    tableData,
    explain,
};
